package com.lh0811.forge.pserv.basic.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 系统-系统配置表
 *
 * @author lh0811
 * @email lh0811
 * @date 2024-04-23 09:46:45
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommConfigCreateParam implements Serializable {

    @NotNull(message = "配置id不能为空")
    @Schema(description = "配置类型id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long configTypeId;
    @NotBlank(message = "配置名不能为空")
    @Schema(description = "配置名")
    private String configName;
    @NotBlank(message = "配置键不能为空")
    @Schema(description = "配置键")
    private String configKey;
    @NotBlank(message = "配置值不能为空")
    @Schema(description = "配置值")
    private String configValue;
    @Schema(description = "是否生效")
    private Boolean enableFlag = Boolean.TRUE;

}
